<#assign className = table.classNameBo>
<#assign classNameLower = className?uncap_first>
<#assign classNameAllLower = table.classNameBo?lower_case>

<#include "/macro.include"/>
package ${basepackage}.business.service.impl;

import ${basepackage}.${persistence}.${className}Repository;
import ${basepackage}.core.Entity.${className};
import ${basepackage}.business.service.${className}Service;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hp.up.business.service.impl.BaseServiceImpl;
import com.hp.up.core.annotation.Log;
import com.hp.up.core.common.Constants;
import com.hp.up.core.web.page.PageDto;
import com.hp.up.core.web.page.PagingList;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ${className}ServiceImpl extends BaseServiceImpl<${className}> implements ${className}Service{

    @Autowired
    private ${className}Repository ${classNameLower}Repository;

    @Override
    public void afterPropertiesSet() throws Exception {
        super.baseRepository = ${classNameLower}Repository;
    }

    @Override
    public List<${className}> getPage(${className} ${classNameLower}, PageDto pageDto) {

        List<${className}> lists = ${classNameLower}Repository.getPage(${classNameLower});

        return lists;
    }

    @Override
    public long getCount(${className} ${classNameLower}) {

        long total = ${classNameLower}Repository.getCount(${classNameLower});

        return total;
    }

}
